package com.woniuxy;

import com.woniuxy.dao.RbacManagerDao;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Do: 87期复习spring的DI
 * @DateTime: 22/05/16/0016 上午 10:29
 * @Component: 成都蜗牛学苑
 **/
public class MyClass87Demo {
    RbacManagerDao rbacManagerDao;
    public List<Map<String,Object>> findAll(){
      return   rbacManagerDao.findAll();
    }


    public RbacManagerDao getRbacManagerDao() {
        return rbacManagerDao;
    }

    public void setRbacManagerDao(RbacManagerDao rbacManagerDao) {
        this.rbacManagerDao = rbacManagerDao;
    }

    public Student getStudent1() {
        return student1;
    }

    public void setStudent1(Student student1) {
        this.student1 = student1;
    }

    Student student1;
    String name;

    public MyClass87Demo() {
    }

    @Override
    public String toString() {
        return "MyClass87Demo{" +
                "rbacManagerDao=" + rbacManagerDao +
                '}';
    }

    public MyClass87Demo(Student student, String name) {
        this.student1 = student;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Student getStudent() {
        return student1;
    }

    public void setStudent2(Student student) {
        this.student1 = student;
    }
}
